import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/tabbar',
      name: 'tabbar',
      component: () => import('../views/tabbar.vue'),
    },
    {
      path: '/acceptorder',
      name: 'acceptorder',
      component: () => import('../views/acceptorder.vue')
    }, {
      path: '/',
      name: 'login',
      component: () => import('../views/login.vue')
    },
    {
      path: '/escort_certification',
      name: 'escort_certification',
      component: () => import('../views/escort_certification.vue')
    },
    {
      path: '/mypage',
      name: 'mypage',
      component: () => import('../views/mypage.vue')
    },
    {
      path: '/homepage',
      name: 'homepage',
      component: () => import('../views/Homepage.vue'),
    },
    {
      path: '/changeimg',
      name: 'changeimg',
      component: () => import('../views/changeimg.vue')
    },
    {
      path: '/changepwd',
      name: 'changepwd',
      component: () => import('../views/changepwd.vue')
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: () => import('../views/Statistics.vue')
    },
    {
      path: '/order_center',
      name: 'order_center',
      component: () => import('../views/order_center.vue')
    }
  ],
})

export default router
